entity_name(attribute1, attribute2...). The entity identifier or primary key is underlined.Normalisation is a process to ensure that data in a relational database is stored in most efficient way. In a normalised database, there is no redundant data, each item of data is stored in correct table and is at an atomic level. Atomic means split to a level where it cannot be further decomposed.
First normal form
Second normal form
Third normal form
CHAR
VARCHAR
SQL commands use the following syntax:
SELECT <attribute> FROM <table> WHERE <condition> ORDER BY <ASC/DESC>UPDATE <table> SET <attribute> = <value> WHERE <attribute> = <value>DELETE FROM <table> WHERE <condition>INSERT INTO <table> (<column1>, <column2>, ...) VALUES (<value1>, <value2>, ...)CREATE TABLE <table>(<column1> <column1type>, <column2> <column2type>, ...)All transactions must satisfy:
A lock is put on an item data as soon as a user with write-access starts using it. There are two types of lock:
While a record is exclusive locked, other users cannot access the record. This means two users cannot concurrently update a record; users must wait until other transactions have released the record with the COMMIT command. A downside of using locks is that deadlocks can occur, where two transactions wait for each other to release records.